﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using HRM.Entity;
using HRM.DAL;

namespace HRM.BIZ
{
    public class EmployeeContractBiz: BaseBiz
    {
        public List<EmployeeContract> GetAllByEmpID(int empID)
        {
            return new EmployeeContractDAL().GetAllByEmpID(empID);
        }

        public EmployeeContract GetByID(int ID)
        {
            return new EmployeeContractDAL().GetByID(ID);
        }

        public EmployeeContract Update(EmployeeContract item)
        {
            return new EmployeeContractDAL().Update(item);
        }

        public EmployeeContract Add(EmployeeContract item)
        {
            return new EmployeeContractDAL().Add(item);
        }

        public void Delete(int ID)
        {
            new EmployeeContractDAL().Delete(ID);
        }

    }
}
